package com.smart.product.common.query;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author zhangwei
 */
@Data
@Validated
public class ProductQuery {

    @NotNull
    private String productId;
    @NotNull
    private String keyword;
    @Min(value = 0, message = "参数不合法")
    private Long categoryId;
    private Integer page = 1;
    private Integer size = 10;
    private Integer sort = 0;

}
